<h4>Edit Group: <?php echo $this->group['name'] ?></h4>

<div class="row">
    <div class="col-md-3 col-md-offset-3">
        <?php if ( count($this->errors) > 0 ): ?>
            <div class="alert alert-danger" role="alert">
                <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                  <span aria-hidden="true">&times;</span>
                </button>
                <ul>
                <?php foreach ($this->errors as $key => $field): ?>
                    <?php foreach ($field as $error): ?>
                        <li>Field <?php echo $key; ?>: <?php echo $error; ?></li>
                    <?php endforeach; ?>
                <?php endforeach; ?>
                </ul>
            </div>
        <?php endif; ?>
        <form action="" method="post">
            <input type="hidden" name="id" value="<?php echo $this->group['id'] ?>" />
            <div class="form-group">
                <label for="name">Group Name</label>
                <input type="text" class="form-control" id="name" name="name" value="<?php echo $this->group['name'] ?>" />
            </div>
            <button type="submit" class="btn btn-default">Save Group</button>
            <a class="btn btn-default" href="<?php echo url('group/groups'); ?>">Cancel</a>
        </form>
    </div>
</div>